package com.ostrich.cloud.ostrichUserWeb.client;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichGoodsSercice.model.param.CreateGrounpByParam;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "grounpGoodsClient",name="ostrichUserWeb")
@Api("拼团相关接口")
public interface GrounpGoodsClient {

    @PostMapping("createGrounpBy")
    @ApiOperation("创建拼团订单接口")
    public Result createGrounpBy(@RequestBody CreateGrounpByParam param);

    @GetMapping("getGrounpBy")
    @ApiOperation("查看拼团订单接口")
    public Result getGrounpBy(@RequestParam("groundGoodsId")Integer groundGoodsId);

    @GetMapping("getGrounp")
    @ApiOperation("查看拼团商品接口")
    public Result getGrounp(@RequestParam("current")Integer current,@RequestParam("size")Integer size);


}
